import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-12-17
 * Time: 14:27
 */
public class Transform {
    public static void transFrom(int[] array) {
        for (int i = 0; i < array.length; i++) {
            array[i] = array[i] * 2;
        }
    }
    public static void main(String[] args) {
        int[] array = new int[]{1,2,3};
        transFrom(array);
        System.out.println(Arrays.toString(array));
    }
}
